.class Lcom/k/j/o/a/a/d$a;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/k/j/o/a/a/d;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "a"
.end annotation


# static fields
.field private static a:Ljava/lang/String;

.field private static b:I

.field private static c:Lcom/google/analytics/tracking/android/GoogleAnalytics;

.field private static d:Lcom/google/analytics/tracking/android/Tracker;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/16 v0, 0x1e

    sput v0, Lcom/k/j/o/a/a/d$a;->b:I

    return-void
.end method

.method public constructor <init>(Z)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    sget-object v0, Lcom/k/j/o/a/a/d;->a:Ljava/lang/String;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/k/j/o/a/a/d;->a:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcom/k/j/o/a/a/d;->a:Ljava/lang/String;

    sput-object v0, Lcom/k/j/o/a/a/d$a;->a:Ljava/lang/String;

    :goto_0
    invoke-direct {p0, p1}, Lcom/k/j/o/a/a/d$a;->a(Z)V

    return-void

    :cond_0
    const/16 v0, 0xe25

    const/16 v1, 0xe

    invoke-static {v0, v1}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/k/j/o/a/a/d$a;->a:Ljava/lang/String;

    goto :goto_0
.end method

.method private a(Z)V
    .locals 2

    invoke-static {}, Lcom/k/j/o/a/a/d;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/google/analytics/tracking/android/GoogleAnalytics;->getInstance(Landroid/content/Context;)Lcom/google/analytics/tracking/android/GoogleAnalytics;

    move-result-object v0

    sput-object v0, Lcom/k/j/o/a/a/d$a;->c:Lcom/google/analytics/tracking/android/GoogleAnalytics;

    sget-object v0, Lcom/k/j/o/a/a/d$a;->c:Lcom/google/analytics/tracking/android/GoogleAnalytics;

    sget-object v1, Lcom/k/j/o/a/a/d$a;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/google/analytics/tracking/android/GoogleAnalytics;->getTracker(Ljava/lang/String;)Lcom/google/analytics/tracking/android/Tracker;

    move-result-object v0

    sput-object v0, Lcom/k/j/o/a/a/d$a;->d:Lcom/google/analytics/tracking/android/Tracker;

    invoke-static {}, Lcom/google/analytics/tracking/android/GAServiceManager;->getInstance()Lcom/google/analytics/tracking/android/GAServiceManager;

    move-result-object v0

    sget v1, Lcom/k/j/o/a/a/d$a;->b:I

    invoke-virtual {v0, v1}, Lcom/google/analytics/tracking/android/GAServiceManager;->setLocalDispatchPeriod(I)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)V
    .locals 3

    :try_start_0
    sget-object v0, Lcom/k/j/o/a/a/d$a;->d:Lcom/google/analytics/tracking/android/Tracker;

    invoke-static {}, Lcom/google/analytics/tracking/android/MapBuilder;->createAppView()Lcom/google/analytics/tracking/android/MapBuilder;

    move-result-object v1

    const-string v2, "&cd"

    invoke-virtual {v1, v2, p1}, Lcom/google/analytics/tracking/android/MapBuilder;->set(Ljava/lang/String;Ljava/lang/String;)Lcom/google/analytics/tracking/android/MapBuilder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/google/analytics/tracking/android/MapBuilder;->build()Ljava/util/Map;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/google/analytics/tracking/android/Tracker;->send(Ljava/util/Map;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)V
    .locals 2

    :try_start_0
    sget-object v0, Lcom/k/j/o/a/a/d$a;->d:Lcom/google/analytics/tracking/android/Tracker;

    invoke-static {p4, p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-static {p1, p2, p3, v1}, Lcom/google/analytics/tracking/android/MapBuilder;->createEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;)Lcom/google/analytics/tracking/android/MapBuilder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/google/analytics/tracking/android/MapBuilder;->build()Ljava/util/Map;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/google/analytics/tracking/android/Tracker;->send(Ljava/util/Map;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method
